/*
 * SplashWindow3.java
 *
 * Created on 14 de diciembre de 2001, 01:11 AM
 */

package InterfacesGenerales;

public class SplashWindow extends javax.swing.JWindow {
    
    public SplashWindow(javax.swing.JFrame f) {
        super(f);
        initComponents();
    }
    private void initComponents() {
        javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/varios/splash.jpg")));
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent e) {
                setVisible(false);
                dispose();
            }
        });
        java.awt.Dimension screenSize =
        java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension labelSize = jLabel1.getPreferredSize();
        setLocation(screenSize.width/2 - (labelSize.width/2),
        screenSize.height/2 - (labelSize.height/2));
        getContentPane().add(jLabel1, java.awt.BorderLayout.CENTER);
        pack();
    }
}